package com.itheima.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/users")
public class UserController {

    @GetMapping("/m1")
    public void m1(Integer id) throws InterruptedException {
        System.out.println("模拟业务操作...");
        Thread.sleep(3000l);
    }

    @GetMapping("/m2")
    public void m2(String name) throws InterruptedException {
        System.out.println("模拟业务操作...");
        Thread.sleep(3000l);
    }

}
